package cn.tedu.carehome.foundation.service;

import cn.tedu.carehome.foundation.pojo.dto.*;
import cn.tedu.carehome.foundation.pojo.entity.FoodPackage;
import cn.tedu.carehome.foundation.pojo.entity.OlderFoodPackage;
import cn.tedu.carehome.foundation.pojo.vo.*;
import cn.tedu.carehome.foundation.restful.JsonPage;

import java.util.List;

/**
 * 处理套餐数据的业务接口
 *
 * @author 袁田
 * @version 0.0.1
 */

public interface IFoodPackageService {

    /**
     * 添加套餐
     *
     * @param foodPackageAddNewDTO 新的套餐数据
     */
    void addNew(FoodPackageAddNewDTO foodPackageAddNewDTO);


    /**
     * 根据id删除套餐
     * @param id 待删除的id
     */
    void deleteById(Long id);


    /**
     * 查询套餐列表信息
     * @return 展示在后台管理界面的套餐的集合
     */
    List<FoodPackageAdminVO> queryFoodPackageList();

    JsonPage<FoodPackageAdminVO> queryFoodPackageListByPage(Integer page,Integer pageSize);

    /**
     * 根据id查询套餐
     * @param id 待查询的套餐对象
     * @return 查询的套餐信息
     */
    FoodPackageUpdateVO selectById(Long id);

    /**
     * 更新套餐信息
     * @param foodPackageUpdateDTO 更新的套餐数据
     */
    void update(FoodPackageUpdateDTO foodPackageUpdateDTO);

    /**
     *
     *
     * 以下为关联表业务
     *
     *
     *
     */

    void addNewLink(OlderFoodPackageAddNewDTO olderFoodPackageAddNewDTO);

    void deleteLinkById(Long id);
//
    List<OlderFoodPackageLinkListItemVO> selectLink();
//
    void updateLink(OlderFoodPackageUpdateDTO olderFoodPackageUpdateDTO);

    OlderFoodPackageStandardVO selectStandardLinkById(Long id);

    List<FoodPackageFoodStandardVO> selectFoodByFoodPackage(Long id);








}
